#include "connectionparammodel.h"

ConnectionParamModel::ConnectionParamModel(QObject *parent) :
	QObject(parent),
	mHost("192.168.2.131"),
	mLogin("admin"),
	mPassword("qweQWE123")
{
}

QString ConnectionParamModel::host() const {
	return mHost;
}

void ConnectionParamModel::setHost(const QString &host) {
	if(host != mHost)	{
		mHost = host;
		emit hostChanged();
	}
}

QString ConnectionParamModel::login() const {
	return mLogin;
}

void ConnectionParamModel::setLogin(const QString &login) {
	if(login != mLogin)	{
		mLogin = login;
		emit loginChanged();
	}
}

QString ConnectionParamModel::password() const {
	return mPassword;
}

void ConnectionParamModel::setPassword(const QString &password) {
	if(password != mPassword)	{
		mPassword = password;
		emit passwordChanged();
	}
}
